package ruifeng.zcj.communcationring.base.api;

import com.lidroid.xutils.http.RequestParams;
import com.lidroid.xutils.http.callback.RequestCallBack;

import ruifeng.zcj.communcationring.groble.Whole;

/**
 * 网络请求业务层的封装业务
 * Created by Administrator on 2016/9/18 0018.
 */
public class OSChinaApi {
    /****
     * 七、提交订单
     * goodslist :订单信息
     ***/
    public static void submitorder(int i,RequestCallBack<String> handler) {
        String url = null;
        RequestParams params = new RequestParams();
        params.addBodyParameter("orderby", "1");
        switch (i){
            case 1:// 支付宝
                url =  Whole.submitorder;
                break;
            case 2:// 微信
                url =  Whole.submitorder;
                break;
        }
        if (url != null){
            ApiHttpClient.post(url, handler);
        }
    }


}
